//
//  UIButton+Extension.swift
//  SinaWeibo
//
//  Created by apple on 16/9/23.
//  Copyright © 2016年 itcast. All rights reserved.
//

import UIKit



extension UIButton {
    //便利构造函数
    convenience init(title: String,textColor: UIColor,fontSize: CGFloat) {
        self.init()
        setTitle(title, for: .normal)
        setTitleColor(textColor, for: .normal)
        titleLabel?.font = UIFont.systemFont(ofSize: fontSize)
        self.sizeToFit()
    }
}
